﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WarOfDev.EF;
using System.Data.Entity;

namespace WarOfDev.Core
{
    public class WorkContext
    {
      
        //public static Developer GetCurrentDeveloper()
        //{
            

        //    if (System.Web.HttpContext.Current.Session["currentDeveloper"] == null)
        //    {
        //        using (WarDevEntities db = new WarDevEntities())
        //        {
        //            var currentDeveloper = db.Developers.Single(d => d.Id == "6c84106b-2777-4db8-899d-1a4f562b0f34");
        //            System.Web.HttpContext.Current.Session["currentDeveloper"] = currentDeveloper;
        //            return currentDeveloper;
        //        }
        //    }
        //    else
        //    {
        //        return System.Web.HttpContext.Current.Session["currentDeveloper"] as Developer;
        //    }
            
        //}
    }
}
